<table border="1" style="border-collapse: collapse">
  <thead>
    <tr>
      <th>机台</th>
      <th>状态</th>
      <th>类型</th>
      <th>设 定 值</th>
      <th>ֵ实 际 值</th>
    </tr>
  </thead>

  <tbody style="text-align: center">
    {% for item in body %}
    <tr>
      <td rowspan="2">{{item.dev_no}}</td>
      {% if item.state == '运行' %}
      <td style="color: rgba(0, 128, 0, 0.5)" rowspan="2">{{item.state}}</td>

      {% elif item.state == '维护' %}
      <td style="color: rgba(220, 220, 220, 0.5)" rowspan="2">
        {{item.state}}
      </td>

      {% elif item.state == '高温' %}
      <td style="color: rgba(250, 0, 0, 0.5)" rowspan="2">{{item.state}}</td>

      {% elif item.state == '闲置' %}
      <td style="color: rgba(255, 215, 0, 0.5)" rowspan="2">{{item.state}}</td>
      {% else %}

      <td rowspan="2">{{item.state}}</td>
      {% endif %}

      <td>温度</td>
      <td>{{item.temp_set}}℃</td>
      <td>ֵ{{item.temp}}℃</td>
    </tr>

    <tr>
      <td>湿度</td>
      <td>{{item.humi_set}}%</td>
      <td>{{item.humi}}%</td>
    </tr>

    {% endfor%}
  </tbody>
</table>
